import static java.lang.System.out;
import java.util.Scanner;
class Lab6_2 
{
			public static void main(String arg[])
		{
			Scanner sc = new Scanner(System.in);
			String input = sc.next();
			
			for(int i=(input.length()-1);i>=0;i--)
		    {
			out.print(input.charAt(i));
		    }
			
	       	}
}
